package com.horsen.service.user.model.VO;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单列表VO
 *
 * @author Horsen
 */
@Data
@ApiModel("订单列表VO")
public class OrderListVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单号")
    private String orderNo;

    @ApiModelProperty("课程ID")
    private String courseId;

    @ApiModelProperty("课程名称")
    private String courseTitle;

    @ApiModelProperty("讲师ID")
    private String teacherId;

    @ApiModelProperty("讲师名称")
    private String teacherName;

    @ApiModelProperty("会员ID")
    private String memberId;

    @ApiModelProperty("会员名称")
    private String name;

    @ApiModelProperty("会员手机")
    private String phone;

    @ApiModelProperty("订单金额")
    private BigDecimal totalFee;

    @ApiModelProperty("是否支付(1已支付,0未支付)")
    @TableField("is_paid")
    private Boolean paid;

    @ApiModelProperty("下单时间")
    @JsonFormat(pattern = "yyyy.MM.dd HH:mm:ss")
    private Date gmtCreate;
}
